package xyz.iguilty.workflow.example.activity.trip;

import org.springframework.stereotype.Component;
import xyz.iguilty.workflow.core.service.AbstractActivity;
import xyz.iguilty.workflow.model.*;

@Component("attendance_businessTrip_managerAudit")
public class BusinessTripManagerAuditActivity extends AbstractActivity<BusinessModel, String> {
    @Override
    public String getStatusAfterCreated() {
        return "待经理审核";
    }

    @Override
    public String currentActivityKey() {
        return "attendance_businessTrip_managerAudit";
    }

    @Override
    public ActorModel getCurrentActors(ActivityContext context) {
        SimpleGroup simpleGroup = new SimpleGroup("manager", "经理");
        return ActorModel.buildFromCandidateGroup(simpleGroup);
    }
}
